#include<stdio.h>

int main()
{
    int a,b,c,count=0;
    printf("There are different methods for XM to lend books to 3 readers:\n");
    for(a=1;a<=5;a++)
    {
        for(b=1;b<=5;b++)
        {
            for(c=1;c<=5;c++)
            if(a!=b&&b!=c&&a!=c)
            {
                count++;
                printf("%d:%d %d %d\n",count,a,b,c);
            }
        }
    }
}